package cn.sxt.userscenter.users.pojo;

import java.io.File;
import java.util.Date;

/**
 * 角色表
 * @author Administrator
 *
 */
public class ARole {

	private int id ;
	private String name ;
	private String content ; 
	private byte status ;
	private Date creatTime ;
	private Date updateTime ; 
	private Date pubTime ;
	
	private String statusStr ;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public Date getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	public String getStatusStr() {
		ARoleEnum[] roleEnums = ARoleEnum.values();
		for (int i = 0; i < roleEnums.length; i++) {
			ARoleEnum roleEnum = roleEnums[i];
			if(roleEnum.toString().indexOf("STATUS_") != -1 && roleEnum.getStatus() ==this.getStatus()){
				this.statusStr = roleEnum.getName();
			}
		}
		return statusStr;
	}
	
}
